from goodies import models

def populate()
    vesta = {}
    for i in models.category.objects.all():
        k,n = i.render_item()
        vesta[k] = n
    return vesta






def rebuild_tree()
    for i in models.category.objects.all():
        i.parents = None
        i.save()
